destructuring in function parameters